﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public class GiaVeDAO
    {
        public static String Select_GiaTien(String MaXe,String MaTuyenDuong)
        {
            String GiaTien = "";
            String strSql = "select GiaTien from GiaVe where MaXe='" + MaXe + "' and MaTuyenDuong='" + MaTuyenDuong + "'";

            try
            {
                DataTable dt = SqlDataAccessHelper.ExcuteQuery(strSql);
                foreach (DataRow dr in dt.Rows)
                {
                    GiaTien = dr["GiaTien"].ToString();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return GiaTien;
        }
    }
}
